import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    renderCount: 0,
    updateCount: 0,
  },
  mutations: {
    render(state) {
      state.renderCount = state.renderCount + 1
    },
    update(state) {
      state.updateCount = state.updateCount + 1
    }
  }
})
